import C_App from "../../core/C_App";
import { C_NotificationConst } from "../../core/C_NotificationConst";
import C_SoundManager, { SoundName } from "../../core/utils/C_SoundManager";
import BaseView from "./C_BaseView";

const { ccclass, property } = cc._decorator;
/** 螺丝箱子 */
@ccclass
export default class C_WinView extends BaseView {


    @property(cc.Animation)
    ani: cc.Animation = null;

    _index: number
    initView(curIndex: number) {
        this._index = curIndex;
        this.ani.play();
        C_SoundManager.instance.playEffect(SoundName.Success)
    }

    onTouchEnd() {
        C_App.NotificationCenter.dispatch(C_NotificationConst.BACK_CUSTOMS);

    }

}
